package builder;

public class WorkerPlanB extends Builder {
    @Override
    public Builder buildA() {
        product.setFood("汉堡");
        System.out.println("yourFood:"+product.getFood());
        return this;
    }

    @Override
    public Builder buildB() {
        product.setPrice(60);
        System.out.println("yourPrice:"+product.getPrice());
        return this;
    }

    @Override
    public Builder buildC() {
        product.setDrink("快乐水");
        System.out.println("yourDrink:"+product.getDrink());
        return this;
    }

    @Override
    public Builder buildD() {
        product.setCanteen(false);
        System.out.println("isCanteen:"+product.isCanteen());
        return this;
    }
}
